//
//  Signal.swift
//  apple
//
//  Created by admin on 2021/7/9.
//

import Foundation
import UIKit


// 回测
protocol SchemeProtocol {
    // 方案名
    var name:String {get}
    var param:[String:[SettingParam]] {get set}
  
    // 获取今日推荐
//    func recommend(didchange:([[String:Any]])->())
    
    // 根据股票代码获取对应包含信号量的数据列表
    func signalDatas(_ code:String) throws -> [[String:Any]]
}


extension SchemeProtocol{
    
    var name:String{
        return "测试"
    }
    
    func signalDatas(_ code:String) throws -> [[String:Any]]{
        return []
    }
    
}





